package com.ndp.fb.walle.business;

import com.ndp.fb.model.business.vo.ectemplate.EcTemplateFilterParam;
import com.ndp.fb.rdb.model.EcTemplate;
import com.ndp.fb.rdb.model.EcTemplateElement;
import com.ndp.fb.rdb.model.Pager;
import com.ndp.fb.rdb.model.User;
import com.ndp.fb.walle.model.vo.ectemplate.result.EcTemplateList;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * Created by evan on 2016/6/27.
 */
public interface TemplateService {
    Pager<EcTemplateList> getTemplateWithPager(Long orgId, String name, int order, List<Long> templateStatus, List<EcTemplateFilterParam> filterList, Integer firstResult, Integer sizeNo);

    void del(Long id);

    EcTemplate updateStatus(Long id, int active);

    void parse(User user, String folder) throws Exception;

    void parseElement(Long templateId, User user, List<EcTemplateElement> ecTemplateElementList, File eachElementFolderInColor,
                              Map<String, Long> ecElementStypeMap, Map<String, Long>  ecColorTypeMap, List templateElementStyleGroup) throws Exception;


}
